
package laya;

public abstract class LayaGlobals
{
	public static final String LAYA_NAMESPACE = "la";
	
	/////////////////////////////////////////////////////////////////////////////////////////////
	// System Properties Defines
	public static final String PROPS_SERVICE_CONFIG = "laya.service.config";
	public static final String DEFAULT_SERVICE_CONFIG = "services.xml";
	
	public static final String PROPS_SERVICE_GENERIC_CONFIG = "laya.service.generic.config";
	public static final String DEFAULT_SERIVCE_GENERIC_CONFIG = "generic-services.xml";
	
	public static final String PROPS_PROCESS_ROOTPATH = "laya.process.rootpath";
	public static final String DEFAULT_PROCESS_ROOTPATH = "laya/procroot";
	public static final String WPROPS_PROCESS_ROOTPATH = "rootpath";
	public static final String WDEFAULT_PROCESS_ROOTPATH = "/WEB-INF/laya/procroot";
	
	public static final String PROPS_PROCESS_WORKPATH = "laya.process.workpath";
	public static final String DEFAULT_PROCESS_WORKPATH = "laya/procwork";
	public static final String WPROPS_PROCESS_WORKPATH = "workpath";
	public static final String WDEFAULT_PROCESS_WORKPATH = "/WEB-INF/laya/procwork";
	
	public static final String PROPS_PROCESS_CLASSPATH = "laya.process.classpath";
	public static final String DEFAULT_PROCESS_CLASSPATH = ".";
	public static final String WPROPS_PROCESS_CLASSPATH = "classpath";
	public static final String WDEFAULT_PROCESS_CLASSPATH = "/WEB-INF/classes";
	
	public static final String PROPS_PROCESS_LIBPATH = "laya.process.libpath";
	public static final String DEFAULT_PROCESS_LIBPATH = ".";
	public static final String WPROPS_PROCESS_LIBPATH = "libpath";
	public static final String WDEFAULT_PROCESS_LIBPATH = "/WEB-INF/lib";
	
	// {0}: process java file absolute pathname;
	// {1}: process java source root path;
	// {2}: process class file destination root path
	// {3}: compile time classpath
	// {4}: compile time log file
	public static final String PROPS_PROCESS_COMPILE_CMD = "laya.process.compile.cmd";
	//public static final String DEFAULT_PROCESS_COMPILE_CMD = "javac -classpath {3} -sourcepath {1} -d {2} -Xstdout {4} {0}";
	public static final String DEFAULT_PROCESS_COMPILE_CMD = "javac -classpath {3} -sourcepath {1} -d {2} {0}";
	public static final String WPROPS_PROCESS_COMPILE_CMD = "ccmd";
	public static final String WDEFAULT_PROCESS_COMPILE_CMD = DEFAULT_PROCESS_COMPILE_CMD;
	
	public static final String PROPS_PROCESS_RELOADABLE = "laya.process.reloadable";
	public static final String DEFAULT_PROCESS_RELOADABLE = "true";
	public static final String WPROPS_PROCESS_RELOADABLE = "reloadable";
	public static final String WDEFAULT_PROCESS_RELOADABLE = DEFAULT_PROCESS_RELOADABLE;
	
	public static final String PROPS_PROCESS_FORCECOMPILE = "laya.process.forcecompile";
	public static final String DEFAULT_PROCESS_FORCECOMPILE = "false";
	public static final String WPROPS_PROCESS_FORCECOMPILE = "forcecompile";
	public static final String WDEFAULT_PROCESS_FORCECOMPILE = DEFAULT_PROCESS_FORCECOMPILE;
	
	// public static final String ATTRS_PROCESSCLASSLOADER = "laya.process.serv.processclassloader";
	public static final String ATTRS_PROCESSLOADER = "laya.process.attrs.processloader";
	
	public static final String PROPS_LAYA_LOCALE = "laya.locale"; // i.e. zh_CN, en_US, ...
	/////////////////////////////////////////////////////////////////////////////////////////////
	
	public static final String RESOURCEBUNDLE_SUFFIX = ".res.resources";
	//public static final String PROCESS_CLASS_PREFIX = "laya.process._work._";
	
	// {0}: ProcessName; {1}: VersionName
	public static final String PROCESS_CLASS_HEADER = "_";
	public static final String PROCESS_PACKAGE_PREFIX = "laya.process._work.";
	public static final String PROCESS_CLASS_PATH_PREFIX = "laya/process/_work/";
	public static final String PROCESS_PROFILE_PATH_PATTERN = "{0}.{1}.xml";
	
	public static final String RES_PREFIX_EXCEPTION = "laya.exception.";
	
	/*
	public static final String DATE_FORMAT = "yyyy-MM-dd";
	public static final String TIME_FORMAT = "HH:mm:ss";
	public static final String DATETIME_FORMAT = DATE_FORMAT + ' ' + TIME_FORMAT;
	public static final String JDNIRootContext = "java:comp/env";
	//public static final String ERROR_PROPERTY = "error";
	public static final String EXCEPTION_PROPERTY = "exception";
	
	public static final String INDEX_PARAM = "index";
	public static final String COUNT_PARAM = "count";
	
	public static final String INDEX_ATTRIBUTE = "laya.index";
	public static final String COUNT_ATTRIBUTE = "laya.count";
	
	public static final String PAGE_INDEXES_ATTRIBUTE = "laya.page.indexes";
	public static final String PAGE_CURRENT_ATTRIBUTE = "laya.page.current";
	
	public static final String ROWS_PROPERTY = "rows";
	
	public static final String KEY_PROP_PREFIX = "_";
	public static final String REQUEST_PATH_PROPERTY = "_requestPath";
	public static final String VALIDATOR_PROPERTY = "_validator";
	public static final String RESULT_ATTRIBUTE = "laya.result";
	
	public static final String MSGKEY_SYS_EXCEPTION = "laya.exception.system";
	public static final String MSGKEY_OPT_FAILURE = "laya.failure";
	public static final String MSGKEY_OPT_SUCCESS = "laya.success";
	public static final String FORWARD_SUCCESS = "success";
	public static final String FORWARD_FAILURE = "failure";
	public static final String FORWARD_EXCEPTION = "exception";
	*/
}
